package com.chukun.disruptor.higher.chain;


import com.lmax.disruptor.EventHandler;

/**
 * handler1: 设置Price
 */
public class EventHandlerTaskFour implements EventHandler<Trade> {

    @Override
    public void onEvent(Trade trade, long l, boolean b) throws Exception {
       trade.setPrice(11.37d);
        Thread.sleep(1000);
    }
}
